<?php
/**
 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined('_JEXEC') or die('Restricted access');

$url = clone(JURI::getInstance());
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit'
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
	<jdoc:include type="head" />
	
	
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/telomiova_v2/javascript/jquery-1.2.6.pack.js" ></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/telomiova_v2/javascript/hoverIntent.js" ></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/telomiova_v2/javascript/superfish.js" ></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/telomiova_v2/javascript/telomiova.js" ></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/telomiova_v2/javascript/supersubs.js" ></script>
	<script type="text/javascript">
    $(document).ready(function(){ 
        $("ul.menutop").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    15,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish({
			animation : { height:"show" },
			autoArrows : true		
		}); 
    });	
	</script>
	
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/template.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/position.css" type="text/css" media="screen,projection" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/layout.css" type="text/css" media="screen,projection" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/print.css" type="text/css" media="Print" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/general.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/telomiova.css" type="text/css" />
	<?php if($this->direction == 'rtl') : ?>
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/template_rtl.css" type="text/css" />
	<?php endif; ?>
	<!--[if lte IE 6]>
		<link href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/ieonly.css" rel="stylesheet" type="text/css" />
	<![endif]-->
	<!--[if IE 7]>
		<link href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/ie7only.css" rel="stylesheet" type="text/css" />
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/telomiova_v2/css/superfish.css" media="screen">
</head>
<body>
	<div id="all">
		<div id="header">
			<h1 id="logo">
				<img src="<?php echo $this->baseurl ?>/templates/telomiova_v2/images/telomiova-logo3.png" border="0" alt="<?php echo JText::_('Logo telomiova_v2, Three little Bees'); ?>" width="320" height="72" />
		
			</h1>
			
<?php if ($this->countModules('user6')) : ?>
		<div id="s_login">
			<jdoc:include type="modules" name="user6"  />
		</div>
	<?php endif; ?>
	
	<?php if($this->countModules('user4')) : ?>
		<div id="s_search">
			<jdoc:include type="modules" name="user4" />
		</div>
	<?php endif; ?>
			
			
		</div>
		<div id="topmenu">
			<jdoc:include type="modules" name="topmenu" />
		</div>



		<div class="wrap">&nbsp;</div>

		<div id="contentarea">
			<div id="breadcrumbs">
				<p>
					<?php echo JText::_('You are here'); ?>
					<jdoc:include type="modules" name="breadcrumb" />
				</p>
			</div>
			<a name="content"></a>
			<div id="wrapper">

			<?php if($this->countModules('main')) : ?>
				<jdoc:include type="modules" name="main" />
				
				<div id="bottom">
					<div id="bottom-1" class="clearfix">

					  <?php if( $this->countModules('user1') ) {?>
					  <div class="bottom-inter">
							<jdoc:include type="modules" name="user1" style="xhtml" />
					  </div>
					  <?php } ?>

					  <?php if( $this->countModules('user2') ) {?>
					  <div class="bottom-inter">
							<jdoc:include type="modules" name="user2" style="xhtml" />
					  </div>
					  <?php } ?>

					  <?php if( $this->countModules('top') ) {?>
					  <div class="bottom-inter">
							<jdoc:include type="modules" name="top" style="xhtml" />
					  </div>
					  <?php } ?>
					  
					  <?php if( $this->countModules('user5') ) {?>
					  <div class="bottom-inter">
							<jdoc:include type="modules" name="user5" style="xhtml" />
					  </div>
					  <?php } ?>

					</div>
				</div>
				
				

			<?php else : ?>
				<jdoc:include type="component" />

			<?php endif ; ?> 
			

			<?php if ($this->countModules('left')) { ?>
			<!-- BEGIN: LEFT COLUMN -->
			<div id="ja-col1">
				<jdoc:include type="modules" name="left" style="xhtml" />
			</div><br />
			<!-- END: LEFT COLUMN -->
			<?php } ?>

			</div>
			
			<?php if ($this->countModules('right')) { ?>
			<!-- BEGIN: RIGHT COLUMN -->
			<div id="ja-col2">
				<jdoc:include type="modules" name="right" style="jarounded" />
			</div><br />
			<!-- END: RIGHT COLUMN -->
			<?php } ?>

			
			
			<div class="wrap"></div>
			</div><!-- wrapper -->
		</div><!-- contentarea -->

		<div id="footer">
			<p class="syndicate">
				<jdoc:include type="modules" name="syndicate" />
			</p>


			<div class="wrap"></div>
		</div><!-- footer -->
	</div><!-- all -->

	<jdoc:include type="modules" name="debug" />

</body>
</html>